package com.zhutengwei.android.zuji.model;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2016/12/18.
 */
public class ZujiModel {
    private int id;
    private String email;
    private String category;
    private String title;
    private String content;
    private String latitude;
    private String longitude;
    private String imgdata;
    private String date;

    public ZujiModel() {
        SimpleDateFormat myFmt=new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
        this.date = myFmt.format(new Date()).toString();
    }

    public ZujiModel(String email, String category, String title, String content, String latitude, String longitude, String imgdata) {
        this.email = email;
        this.category = category;
        this.title = title;
        this.content = content;
        this.latitude = latitude;
        this.longitude = longitude;
        this.imgdata = imgdata;
        SimpleDateFormat myFmt=new SimpleDateFormat("yyyy年MM月dd日 HH时mm分ss秒");
        this.date = myFmt.format(new Date()).toString();
    }
    public ZujiModel(String email, String category, String title,
                     String content, String latitude, String longitude,
                     String imgdata, String date) {
        this.email = email;
        this.category = category;
        this.title = title;
        this.content = content;
        this.latitude = latitude;
        this.longitude = longitude;
        this.imgdata = imgdata;
        this.date = date;
    }

    public String getEmail() {
        return email;
    }

    public String getCategory() {
        return category;
    }

    public String getTitle() {
        return title;
    }

    public String getContent() {
        return content;
    }

    public String getLatitude() {
        return latitude;
    }

    public String getLongitude() {
        return longitude;
    }

    public String getImgdata() {
        return imgdata;
    }

    public int getId(){
        return id;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setLatitude(String latitude) {
        this.latitude = latitude;
    }

    public void setLongitude(String longitude) {
        this.longitude = longitude;
    }

    public void setImgdata(String imgdata) {
        this.imgdata = imgdata;
    }

    public void setId(int id){
        this.id = id;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }
}
